<%-- 
    Document   : NRegNacimiento
    Created on : 05-sep-2013, 23:54:22
    Author     : pavel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.ptr.ptrsystem.dao.Lista"%>
<%@page import="com.ptr.ptrsystem.bean.*"%>
<%@page import="java.util.LinkedList"%>
<%@page language="java"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Expires" content="0"/>
        <meta http-equiv="Pragma" content="no-cache"/> 
        <title> </title>
         <link rel='stylesheet' href='/RegCivil/css/estilos.css'>
         <script src='/RegCivil/js/jquery-2.0.2.js'></script>
        <script src='/RegCivil/js/funciones.js'></script>
        <script type="text/javascript">
         {
         if(history.forward(1))
         location.replace(history.forward(1))
         }
</script>
    </head>
<SCRIPT LANGUAGE="JavaScript"> 
    function afirmacion() 
    { 
        open('/RegCivil/jsp/Lvinculo.jsp','Sizewindow', 'width=450,,height=300status=yes,menubar=0,scrollbars=0,toolbar=no,location=0,directories=0,left=300,top=100,resizable=no,border=1px')
    } 
</SCRIPT>    
    <body>
        <form action="${pageContext.request.contextPath}/MantenimientoPersona" method="POST" name="" class="contacto">
        <table align="center" border="0" cellspacing="0" cellpadding="0" style="margin-top:0px ">
            <tr><td>                    
                    <fieldset style="alignment-baseline: central;border: 1px solid #ff2900">
                        <legend style="border: 1px solid #ff2900;background-color: #faf0ee">
                            REGISTRO LIBRO ACTA NACIMIENTO</legend>
                    <table border="0">
                    <tr>
                        <td>
                            <fieldset style="background-color: #fffdf9; border: 1px solid #ffc726"><legend><label/>DATOS DEL REGISTRO ACTA</legend>
                            <table>
                                <tr>
                                    <TD><label/>Cui</td>
                                    <td><input type="text" name="cui" size="8" style="width: 10.0em" maxlength="8" readonly="false">
                                    </td>
                                    <td><label/>Nro Acta</td>
                                    <td><input type="text" name="nroacta" size="8" style="width: 10.0em" maxlength="8" readonly="false">
                                    </td>
                                    <td><label/>Nro Libro</td>
                                    <td><input type="text" name="nrolibro" size="8" style="width: 10.0em" maxlength="8" readonly="false">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4"><label/>APELLIDOS Y NOMBRES<br/>
                                        <input type="text" name="pape" value="" size="8" style="width: 30.0em" readonly="false"/></td>
                                    <td><label/>Genero<br/>
                                        <input type="text" name="genero" value="" style="width:10em" readonly="false"/>
                                    </td>
                                    <td><label/>Estado Civil<br/>
                                        <input type="text" name="ecivil" value="" style="width:10em" readonly="false"/>
                                    </td>
                                </tr>
                            </table>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <fieldset>
                            <legend><label/>REGISTRO DEL NACIDO</legend>
                            <table>
                                <tr>
                                    <td><label/>Fecha de Registro</td>
                                        <td><input type="text" name="pape" size="8" style="width: 10.0em"></td>
                                    <td><label/>Hora de Nacido</td>
                                        <td><input type="text" name="sape" size="8" style="width: 10.0em"></td>
                                    <td><label/>Apellido Casada</td>
                                        <td><input type="text" name="apecas" size="8" style="width: 10.0em"></td>
                                </tr>
                                <tr>
                                <td><label/>Pre-Nombre (S)</td>
                                        <td><input type="text" name="pnom" size="8" style="width: 10.0em"></td>
                                <td><label/>Genero</td>
                                        <td>
                                            <select name="genero" style="padding: 7px 6px;
                                            width: 130px;
                                            border: 1px solid #CED5D7;
                                            resize: none;
                                            box-shadow:0 0 0 3px #EEF5F7;
                                            margin: 5px 0;
                                            text-transform: uppercase;">
                                                <option value="M">Masculino</option>
                                                <option value="F">Femenino</option>
                                            </select>
                                        </td>
                                <td><label/>Estado Civil</td>
                                        <td>
                                            <select name="ecivil" style="padding: 7px 6px;
                                            width: 130px;
                                            border: 1px solid #CED5D7;
                                            resize: none;
                                            box-shadow:0 0 0 3px #EEF5F7;
                                            margin: 5px 0;
                                            text-transform: uppercase;">
                                                <option value="S">Soltero</option>
                                                <option value="C">Casado</option>
                                                <option value="D">Divorciado</option>
                                                <option value="V">Viudo</option>
                                            </select>
                                        </td>
                                </tr>
                            </table>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <fieldset>
                                <legend><label/>LUGAR DE NACIMIENTO</legend>
                            <table border="0">
                                <tr>
                                    <td><input type="text" name="dep" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="prov" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="dist" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="otro" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="lugnaci" size="8" style="width: 40.0em" maxlength="8">
                                        <button type="button" style="width: 3em">:::</button>
                                    </td>
                                </tr>
                            </table>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <fieldset>
                                <legend><label/>LUGAR DE DOMICILIO</legend>
                            <table border="0">
                                <tr>
                                    <td><input type="text" name="dep1" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="prov1" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="dist1" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="otro1" size="2" style="width: 1.0em" maxlength="2"></td>
                                    <td><input type="text" name="lugdomicilio" size="8" style="width: 40.0em" maxlength="8">
                                        <button type="button" style="width: 3em">:::</button>
                                    </td>
                                </tr>
                            </table>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <fieldset>
                                <legend><label>DIRECCION</label></legend>
                            <table border="0">
                                <tr>
                                    <td>
                                        <select name="cdir" style="padding: 7px 6px;
                                            width: 130px;
                                            border: 1px solid #CED5D7;
                                            resize: none;
                                            box-shadow:0 0 0 3px #EEF5F7;
                                            margin: 5px 0;
                                            text-transform: uppercase;">
                                                <%LinkedList<TipoDireccion> tdir=Lista.getlistaTipoDireccion();
                                                for(int c=0;c<tdir.size();c++){%>
                                                <option value="<%=tdir.get(c).getCOD_DIR()%>"><%=tdir.get(c).getNOM_TIPO_DIR()%></option>
                                                <%}%>
                                            </select>
                                        
                                    <br/><label>Jr/Av/Cl</label></td>
                                    <td><input type="text" name="direccion" size="8" style="width: 35em"><br/><label>Nombre Jr/Av/Cl</label></td>
                                    <td><input type="text" name="nro" size="2" style="width: 5.0em"><br/><label>Numero</label></td>
                                </tr>
                            </table>
                            </fieldset>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <fieldset>
                                <legend><label>OTROS DATOS</label></legend>
                            <table border="0">
                                <tr>
                                    <td><input type="text" name="tel1" size="2" style="width: 7.0em"><br/><label>Telefono 1</label></td>
                                    <td><input type="text" name="tel2" size="2" style="width: 7.0em"><br/><label>Telefono 2</label></td>
                                        <td>
                                            <select name="nacio" style="padding: 7px 6px;
                                            width: 180px;
                                            border: 1px solid #CED5D7;
                                            resize: none;
                                            box-shadow:0 0 0 3px #EEF5F7;
                                            margin: 5px 0;
                                            text-transform: uppercase;">
                                                <%LinkedList<Nacionalidad> nac=Lista.getlistaNacionalidad();
                                                for(int a=0;a<nac.size();a++){%>
                                                <option value="<%=nac.get(a).getCOD_NACIONALIDAD()%>"><%=nac.get(a).getNOM_NACIONALIDAD()%></option>
                                                <%}%>
                                            </select>
                                            <br/><label>Nacionalidad</label>
                                        </td>
                                    <td>
                                    <select name="tipoestadop" style="padding: 7px 6px;
                                            width: 230px;
                                            border: 1px solid #CED5D7;
                                            resize: none;
                                            box-shadow:0 0 0 3px #EEF5F7;
                                            margin: 5px 0;
                                            text-transform: uppercase;">
                                                <%LinkedList<TipoEstadoPersona> test=Lista.getlistaEstadoPersona();
                                                for(int b=0;b<test.size();b++){%>
                                                <option value="<%=test.get(b).getCOD_ESTADO_PERS()%>"><%=test.get(b).getNOM_ESTADO_PERS()%></option>
                                                <%}%>
                                            </select>
                                    <br/><label>Restriccion</label>
                                    </td>
                                </tr>
                            </table>
                            </fieldset>
                        </td>
                    </tr>
                    
                    </table>
                    </fieldset>
              </td></tr>
                        <tr>
                            <td colspan="4">
                                <div align="center">                  
                                <fieldset style="alignment-baseline: central; height: 4em">
                                    <legend style="border: 1px solid #dce0e3;background-color: #edf1f5">BOTONES DE MANTENIMIENTO</legend>
                                        <table>
                                        <tr>
                                            <td><button type="submit" name="btn1" value="guardapers"  class="boton">Guardar</button></td>
                                            <td><button type="reset" name="btn1" value="menu">Menu Principal</button></td>
                                            <td><button type="button" name="btn1" value="salir" class="">Salir</button></td>
                                        </tr>
                                        </table>
                                </fieldset>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                        <%String msj=(String)request.getAttribute("msj");
                       if(msj!=null)
                       {
                                if(msj=="1"){%>
                                <div>
                                    <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269">
                                        <legend style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269"><img src="/RegCivil/imagenes/exclamation.png"> </legend>
                                        <label>Error en almacenar el registro ingresado</label>
                                    </fieldset>
                                </div>
                                <%}%>
                        <%}else{%>
                        <div>
                            <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fffbe7;border:1px solid #ffe954">
                                <label style="color:#edd00c; font-size: 1.0em ">Informacion de Almacenamiento</label>
                            </fieldset>
                        </div>
                        <%}%>
                        </td>
                        </tr>
        </table>
    </form>
    </body>
</html>

